package mas;

import rinde.sim.core.model.communication.CommunicationUser;
import rinde.sim.core.model.communication.Message;

public class AcknowledgementMessage extends Message{

	private Truck receiver;
	//the message to which this is a response
	private BoxMessage boxMessage;
	private int counter;

	public AcknowledgementMessage(CommunicationUser sender, int counter, BoxMessage boxMessage) {
		super(sender);
		this.receiver= (Truck) boxMessage.getSender();
		this.boxMessage=boxMessage;
		this.counter=counter;
	}

	public Truck getReceiver() {
		return receiver;
	}
	
	public int getCounter(){
		return this.counter;
	}
	
	public BoxMessage getBoxMessage(){
		return this.boxMessage;
	}
}
